<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/30
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新增或编辑</title>
</head>
<body>
<style>
    #dataTable{width: 80%;height: 100%;margin: 20px;}
    #dataTable td{
        height: 30px;
        margin: 10px;
    }
</style>
<form id="dataForm">
    <table id="dataTable">
        <tr>
            <td width="100" align="right">
                登录名称:
            </td>
            <td>
                <input type="hidden" name="id" value="${u.id}">
                <input class="easyui-textbox" name="loginName" value="${u.loginName}"/>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                用户名称:
            </td>
            <td>
                <input class="easyui-textbox" name="userName" value="${u.userName}"/>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                用户角色:
            </td>
            <td>
                <input class="easyui-combobox" name="roleId" value="${u.roleId}"
                       style="width:150px"
                data-options="
                    url:'${ctx}/rc/find',
                    valueField:'id',
                    textField:'roleName'
                "/>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                性别:
            </td>
            <td>

                <input type="radio" name="sex" value="1" <c:if test="${u.sex eq 1 or empty u.sex}">checked</c:if>/>男
                <input type="radio" name="sex" value="2" <c:if test="${u.sex eq 2}">checked</c:if>/>女
            </td>
        </tr>
        <tr>
            <td width="100" align="right">
                出生日期:
            </td>
            <td>
                <input class="easyui-datebox" name="birthday"
                  value="<fmt:formatDate value="${u.birthday}" pattern="yyyy-MM-dd"/>"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

